﻿using SqlSugar;
using static DataModels.Enums.GeneralEnum;

namespace DataModels.Entities.ShoppingMall
{
    [SugarTable]
    public class ShoppingMallProduct
    {
        [SugarColumn(IsPrimaryKey = true)]
        public Guid UUID { get; set; }

        /// <summary>
        /// 所属店铺
        /// </summary>
        public Guid ShoppingMallStoreUUID { get; set; }

        /// <summary>
        /// 所属分类UUID
        /// </summary>
        public Guid ShoppingMallProductCategoryUUID { get; set; }

        /// <summary>
        /// 商品标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 副标题
        /// </summary>
        public string Subtitle { get; set; }

        /// <summary>
        /// 商品描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 主图URL
        /// </summary>
        public string ImageUrl { get; set; }

        /// <summary>
        /// 是否推荐
        /// </summary>
        public Status IsRecommend { get; set; }

        /// <summary>
        /// 商品状态 - 活动/下架
        /// </summary>
        public Status Status { get; set; } = Status.Enable;

        /// <summary>
        /// 是否删除   
        /// </summary>
        public Status IsDeleted { get; set; } = Status.Disable;

        public DateTime CreateTime { get; set; } = DateTime.Now;

        public Guid CreateUserUUID { get; set; }

        public DateTime UpdateTime { get; set; } = DateTime.Now;

        public Guid UpdateUserUUID { get; set; }
    }
}
